﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.GenServices.Dtos.Gen
{
    /// <summary>
    /// 实体类
    /// </summary>
    public class EntityTemplateModel : IModel
    {
        /// <summary>
        /// 引用空间
        /// </summary>
        public List<string> Using { get; set; }

        /// <summary>
        /// 命名空间
        /// </summary>
        public string Namespace { get; set; }

        /// <summary>
        /// 实体名称
        /// </summary>
        public string EntityName { get; set; }

        /// <summary>
        /// 实体注释
        /// </summary>
        public string EntitySummary { get; set; }

        /// <summary>
        /// 对应表
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// 包含字段
        /// </summary>
        public List<GenTableColumnDto> Fields { get; set; }

        /// <summary>
        /// 生成的文件名称
        /// </summary>
        public string FileName => EntityName;
    }
}
